﻿
import java.util.Scanner;

public class code044{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.println("月份");
		if(input.hasNext());
		int yf = input.nextInt();
		switch(yf){
			case 12:
			case 1:
			case 2:
			System.out.println("第四个季度");
			break;
			case 3:
			case 4:
			case 5:
			System.out.println("第一个季度");
			break;
			case 6:
			case 7:
			case 8:
			System.out.println("第二个季度");
			break;
			case 9:
			case 10:
			case 11:
			System.out.println("第三个季度");
			break;
			default:
				System.out.println("请输入正确的月份");
		}
		

	}
}